<?php

class Adept_Binding_Factory 
{

    static function createValueBinding($string) 
    {
        if (substr($string, 0, 1) == '#') {
        return new Adept_Binding_Value($string);
        } else {
            return new Adept_Binding_Expression($string);
        }
    }
 
    static function createMethodBinding($string) 
    {
        if (substr($string, 0, 1) == '#') {
            return new Adept_Binding_Method($string);
        } else {
            return new Adept_Binding_Expression($string);
        }     
    }
 
}
